package pers.kw.message.server.persist.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import pers.kw.message.server.persist.entity.MessageZnxDO;

import java.util.List;

public interface MessageZnxDao extends JpaRepository<MessageZnxDO, Long> {

    @Query(value = "from MessageZnxDO where yn=1 and applyId=:applyId")
    List<MessageZnxDO> listByApplyId(@Param("applyId") String applyId);
}
